<%--
  Created by IntelliJ IDEA.
  User: 61003
  Date: 2023/3/3
  Time: 14:16
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
  <title>文件上传</title>
</head>
<body>
<h3>文件上传</h3>
<form action="/upload" method="post" enctype="multipart/form-data">
  <label>文件说明</label>
  <input name="note"> <br>
  <hr>
  <input type="file" name="file1" accept="image/*">
  <hr>
  <button>开始上传</button>
</form>
<c:if test="${msg != null}">
  <hr>
  <div style="color: green">${msg}</div>
  <img src="${filepath}" width="100" height="100">
  <div>${note}</div>
</c:if>
</body>
</html>
